<template>
	<view class="padding-30">
		<view class="padding-30 bg-fff border-radius20">
			<u-parse :content="content"></u-parse>
		</view>
	</view>
</template>

<script>
	export default {
		data(){
			return{
				status:'',
				content:''
			}
		},
		onLoad(e) {
			if(e.status){
				this.status = e.status
				this.$tools.setNavigationBarTitle(e.status+'协议')
				this.getConfig()
			}
		},
		methods:{
			async getConfig(){
				let res = await this.$http.post(this.$api.xieyi,{},{})
				if(res.code == 1){
					if(this.status == '用户协议'){
						this.content = res.data.yonghuxieyi
					}else{
						this.content = res.data.yinsixieyi
					}
				}
			}
		}
	}
</script>

<style lang="scss" scoped>
</style>